<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ChangePassword.ascx.cs" Inherits="forums_controls_usercp_ChangePassword" %>
<asp:MultiView ID="mviewPassword" runat="server">
    <asp:View ID="viewPassword" runat="server">
        <asp:Panel ID="pnlPassword" runat="server" Width="100%" DefaultButton="btnSave">
            <fieldset>
                <legend>Password</legend>
                <table width="100%" align="center" border="0">
                    <tr>
                        <td align="left" valign="top" width="75%">
                            <p>
                                New Password:<br />
                                <asp:TextBox runat="server" ID="txtPassword1" TextMode="password" ValidationGroup="ChangePassword" />
                                <asp:RequiredFieldValidator ID="pass1Required" runat="server" ControlToValidate="txtPassword1"
                                    ErrorMessage="You can't have a blank password." ValidationGroup="ChangePassword" Display="None"></asp:RequiredFieldValidator>
                            </p>
                            <p>
                                Confirm Password:<br />
                                <asp:TextBox runat="server" ID="txtPassword2" TextMode="password" ValidationGroup="ChangePassword" />
                                <asp:CompareValidator ID="pass2Compare" runat="server" ControlToCompare="txtPassword1"
                                    ControlToValidate="txtPassword2" ErrorMessage="Passwords don't match." ValidationGroup="ChangePassword" Display="None"></asp:CompareValidator>
                                <asp:RequiredFieldValidator ID="pass2Required" runat="server" ControlToValidate="txtPassword2"
                                    Display="None" ErrorMessage="You need to confirm your password." ValidationGroup="ChangePassword"></asp:RequiredFieldValidator></p>
                            <p>
                                <asp:Button runat="server" ID="btnSave" Text="Save Changes" OnClick="btnSave_Click" ValidationGroup="ChangePassword" />
                            </p>
                            <p>
                                <asp:Label runat="server" ID="lblMsg" EnableViewState="False"
                                    Visible="False" Text="You changes have been saved." ForeColor="Green"/>
                            </p>
                        </td>
                        <td align="left" valign="top" width="25%">
                            <asp:ValidationSummary ID="ValidationSummary2" runat="server" ValidationGroup="ChangePassword" />
                        
                        </td>
                    </tr>
                </table>
            </fieldset>
        </asp:Panel>
    </asp:View>
    <asp:View ID="viewError" runat="server">
        User not found.</asp:View>
</asp:MultiView>
